# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=webtech
pkgver=1.3.3
pkgrel=5
pkgdesc='Identify technologies used on websites.'
arch=('any')
groups=('blackarch' 'blackarch-webapp' 'blackarch-recon' 'blackarch-scanner'
        'blackarch-fingerprint')
url='https://pypi.org/project/webtech/#files'
license=('GPL')
depends=('python' 'python-requests')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/ce/6b/068dd9e5baf482ec2aeda2e1dec6f79ad939206656d7bd76d1f851c3cb65/$pkgname-$pkgver.tar.gz")
sha512sums=('5dff193615ae34e61305b3b502ff68a848cad7233f7f4ad7baec7791a201ad97edbbeb128f4878c4bc9f1010a48d67082e5eb06e419fcb65dfb64a0382b6c6cb')
install="$pkgname.install"

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

